package cn.cai.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class BasicInformation implements Serializable {
    /**
     * personal_data = {
         *     "cmd": "yqsbFormSave",  # 固定参数,（疫情上报保存）
         *     "xh": "1911014001",     # 学号
         *     "sbsj": getDate(),      # 上报时间
         *     "nl": "22",             # 年龄
         *     "lxfs": "18103769375",  # 联系方式
         *     "jzdq": "410221",       # 家住地区  (该地区对应的地方编码，在家的话，是身份证前6位)
         *     "jzdq_xxdz": "五里井村",  # 家住地区-详细地址  (村，街道就行)
         *     "tw": "36.5",           # 上报体温
         *     "sflx": "0",            # 是否留校，0：未留校 1：留校
         *     "jcbr": "0",
         *     "zyzz": "1,",
         *     "fbrq": "",
         *     "zyzzms": "",
         *     "bz": "",
         *     "bz1": "",
         *     "wcjtgj": "",
         *     "wcjtgjxq": "",
         *     "wcdq": "",
         *     "wcdqxxdz": "",
         *     "lkdate": "",
         *     "fhdate": "",
         *     "zszt": ""
     * }
     */
    private final String cmd = "yqsbFormSave";
    private String xh;
    private String nl;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private LocalDateTime sbsj;  // 上报时间
    private String lxfs;
    private String jzdq;
    private String jzdqXxdz;
    private String tw;
    private String sflx;

    private String jcbr = "0";
    private String zyzz = "1,";
    private String fbrq = "";
    private String zyzzms = "";

    private String bz = "";
    private String bz1 = "";
    private String wcjtgj = "";
    private String wcjtgjxq = "";
    private String wcdq = "";
    private String wcdqxxdz = "";
    private String lkdate = "";
    private String fhdate = "";
    private String zszt = "";

    private Boolean isReport;
    private String reportingTime;
    private String mail;

}
